package com.lagou.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author : liuchangling
 * @Descrition :
 * @Date： Created in 3:11 下午 2021/9/18
 */
@RestController
@RequestMapping("/config")
@RefreshScope
public class ConfigClientController {
    @Value("${config.slogan}")
    private String slogan;

    @RequestMapping("/remote")
    public String findRemoteConfig() {
        return slogan;
    }
}
